package com.guigu.tms.work.controller;

import com.github.pagehelper.PageInfo;
import com.guigu.tms.commons.entity.work.DriverJob;
import com.guigu.tms.commons.entity.work.TaskTransport;
import com.guigu.tms.work.service.IDriverJobService;
import com.guigu.tms.work.service.ITaskTransportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 司机作业单 前端控制器
 * </p>
 *
 * @author zwj
 * @since 2022-09-27
 */
@RestController
@RequestMapping("/driverJob")
public class DriverJobController {
    @Autowired
    IDriverJobService service;
    @RequestMapping("/queryall")
    public PageInfo<DriverJob> queryall(@RequestBody Map<String,String> condition){
        PageInfo<DriverJob> pageInfo=service.queryall(condition);
        System.out.println(pageInfo);
        return pageInfo;
    }
}
